package com.example.auth.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.db.annotations.ID;
import com.example.db.annotations.Table;
import com.example.db.annotations.TableField;

import java.lang.annotation.Target;
import java.util.Date;

/**
 * @Classname RoleUserModel
 * @Description TODO
 * @Date 2022/7/31 14:05
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@Table("sys_role_user")
public class RoleUserModel {

    @ID
    private Integer id;

    @TableField("roleId")
    private Integer roleId;

    private String rolename;

    private String roleno;

    @TableField("userid")
    private Integer userid;

    private String username;

    private String phone;

    @TableField("createdate")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createdate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getRoleno() {
        return roleno;
    }

    public void setRoleno(String roleno) {
        this.roleno = roleno;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }
}
